<script>
import { ElOption } from 'element-plus'

export default {
  name: 'YqOption',
  components: {
    ElOption
  },
  props: {
    label: {
      type: String,
      default: ''
    },
    value: {
      type: [String, Number, Boolean, Object, Array],
      required: true
    },
    // 支持更多Element Plus Option的属性
    disabled: {
      type: Boolean,
      default: false
    },
    created: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<template>
  <el-option
    v-bind="{ ...$props, ...$attrs }"
  >
    <slot>{{ label }}</slot>
  </el-option>
</template>

<style scoped>
/* 组件的样式可以在这里定义 */
</style>